From d4f4c7cafbaff62bdb8111011b7039a5be256e62 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Fri, 7 Oct 2011 14:33:15 +0100 Subject: [PATCH] tools/check: remove check_logging Remove tools/check/check_logging. Python 2.3 is the minimal required python version so the checked function is available anyway. Signed-off-by: Olaf Hering Acked-by: Ian Jackson Committed-by: Ian Jackson --- tools/check/check_logging | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100755 tools/check/check_logging diff --git a/tools/check/check_logging b/tools/check/check_logging deleted file mode 100755 index d9f3ff814a..0000000000 --- a/tools/check/check_logging +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env python -# -*- mode: python; -*- - -import os -import sys - -def hline(): - print >>sys.stderr, "*" * 70 - -def msg(message): - print >>sys.stderr, "*" * 3, message - -def check_logging(): - """Check python logging is installed and raise an error if not. - Logging is standard from Python 2.3 on. - """ - try: - import logging - except ImportError: - hline() - msg("") - msg(" *** Python logging is not installed.") - msg(" *** Use 'make install-logging' at the xen root to install.") - msg(" *** ") - msg(" *** Alternatively download and install from") - msg(" *** http://www.red-dove.com/python_logging.html") - hline() - sys.exit(1) - -if __name__ == '__main__': - check_logging() -- 2.30.2